<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<script src="../../lib/jquery.min.js">
</script>
<script type="text/javascript">
    $(document).ready(function () {
        $(".a").click(function () {
            $("p").hide(4000);
        })
        $(".b").click(function () {
            $("p").show("slow");
        })
    })
</script>
<body>
<p>隐藏</p>
<button class="a" type="button">隐藏</button>
<button class="b" type="button">显示</button>
</body>
</html>